package com.freework.buildercode.freemarker;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

public class Test {

	
	public String aaa(){
		
		return "aaa";
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		FreemarkerRender fkr = new FreemarkerRender("GBK");
		Map map=new HashMap();
		map.put("type", "textfield");
		map.put("allowBlank", false);
		map.put("t", new Test());

		
		try {//Arrays.asList(map,map,map),
			fkr.render(map,"src/com/freework/buildercode/freemarker/form.ftl", System.out);
		
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}


	}

}
